<template>
  <div class="layout u-flex u-row-between">
    <div class="addr">
      <u-icon name="map" class="u-m-r-6"></u-icon>
      华城新都
      <u-icon name="arrow-down-fill" class="u-m-l-6"></u-icon>
    </div>
    <div class="search" @click="handleSearch">
      <u-icon name="search" class="u-m-r-6"></u-icon>
      {{ res.list[0].title }}
    </div>
  </div>
</template>
<script>
export default {
  title: "搜索栏",
  props: ["res"],
  methods: {
    handleSearch() {
      uni.navigateTo({
        url: "/pages/navigation/search/searchPage",
      });
    },
  },
};
</script>
<style lang="scss" scoped>
@import "./tpl.scss";
.addr {
  font-size: 32rpx;
  font-family: SourceHanSansCN-Regular, SourceHanSansCN;
  font-weight: 400;
  color: #333333;
}
.search {
  height: 64rpx;
  border-radius: 10rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  width: 60%;
  font-size: 28rpx;
  font-family: SourceHanSansCN-Regular, SourceHanSansCN;
  font-weight: 400;
  color: #999999;
}

.layout {
  background: #fff;
  padding: 0 16rpx;
  position: relative;
}

</style>
